EXTRA_DIST = yh-kt-fold_16x16.png yh-kt-fold_24x24.png yh-kt-fold_22x22.png yh-kt-fold_32x32.png yh-kt-fold_48x48.png yh-kt-fold_64x64.png yh-kt-fold_128x128.png yh-kt-fold_256x256.png yh-kt-fold_logo.svg
SIZES = 16x16 22x22 24x24 32x32 48x48 64x64 128x128 256x256

install-data-hook:
	-for fn in $(SIZES); do \
		mkdir -p "$(DESTDIR)$(datadir)/icons/hicolor/$${fn}/apps/"; \
		cp "$(top_srcdir)/icons/calf_$${fn}.png" "$(DESTDIR)$(datadir)/icons/hicolor/$${fn}/apps/calf.png"; \
		cp "$(top_srcdir)/icons/calf_plugin_$${fn}.png" "$(DESTDIR)$(datadir)/icons/hicolor/$${fn}/apps/calf_plugin.png"; \
	done
	mkdir -p "$(DESTDIR)$(datadir)/icons/hicolor/scalable/apps/"; \
	cp "$(top_srcdir)/icons/calf_scalable.svg" "$(DESTDIR)$(datadir)/icons/hicolor/scalable/apps/calf.svg";
	cp "$(top_srcdir)/icons/calf_plugin_scalable.svg" "$(DESTDIR)$(datadir)/icons/hicolor/scalable/apps/calf_plugin.svg";
	@-test -z "$(DESTDIR)" && gtk-update-icon-cache -f -t $(DESTDIR)$(datadir)/icons/hicolor
	
uninstall-hook:
	@-for fn in $(SIZES); do \
		rm -f "$(DESTDIR)$(datadir)/icons/hicolor/$${fn}/apps/calf.png"; \
		rm -f "$(DESTDIR)$(datadir)/icons/hicolor/$${fn}/apps/calf_plugin.png"; \
	done
	rm -f "$(DESTDIR)$(datadir)/icons/hicolor/scalable/apps/calf.svg";
	rm -f "$(DESTDIR)$(datadir)/icons/hicolor/scalable/apps/calf_plugin.svg";
	@-test -z "$(DESTDIR)" && gtk-update-icon-cache -f -t $(DESTDIR)$(datadir)/icons/hicolor
	

# Novel logo will be created using http://www.biosci.ki.se/groups/ljo/software/nuccyl.html
